// 多边形弹框、
<template>
  <Modal v-on:hidden="$emit('hidden')">
    <div class="polygon flexC">
      <!-- 点击关闭弹窗 -->
      <p class="polygonImgClose"><img @click.self="$emit('hidden')" class="cursor" src="../assets/img/components/08.png"></p>
      <!-- 从父组件中传递 title 到此组件并设定为列表标题 -->
      <p class="polygon_title font_s36 textC colorF">{{title}}</p>
      <div class="modal_content flex1 flex">
        <div class="flex1">
          <slot></slot>
        </div>
      </div>
    </div>
  </Modal>
</template>
<script>
import Modal from './Modal'
export default {
  name: 'ModalPolygon',
  components: {
    Modal
  },
  props: {
    title: {
      type: String,
      default: ''
    }
  }
}
</script>
<style lang="scss" scoped>
.polygon{
  width: 90%;
  height: 90%;
  position: absolute;
  top: 5%;
  left: 5%;
  // background: #FF00ff;
  .polygonImgClose {
    position: absolute;
    top:0;
    right: 2%;
  }
  .polygon_title{
    line-height: 4rem;
    margin-bottom: -2rem;
    background: url(../assets/img/components/02.png) no-repeat;
    background-size: 100% 100%;
  }
  .modal_content{
    padding:5rem 3rem 3rem 3rem;
    background: url(../assets/img/components/01.png) no-repeat;
    background-size: 100% 100%;
    box-sizing: border-box;
  }
}
</style>
